package com.system.service;

import com.system.dao.EmployeeSalaryMapper;
import com.system.pojo.EmployeeSalary;

import java.util.List;
import java.util.Map;

/**
 * Created by 陈文杰 on 2022/6/6 14:58
 */
public class EmployeeSalaryServiceImpl implements EmployeeSalaryService{

    private EmployeeSalaryMapper employeeSalaryMapper;

    public void setEmployeeSalaryMapper(EmployeeSalaryMapper employeeSalaryMapper) {
        this.employeeSalaryMapper = employeeSalaryMapper;
    }

    @Override
    public List<EmployeeSalary> queryEmployeeSalaryAll() {
        return employeeSalaryMapper.queryEmployeeSalaryAll();
    }

    @Override
    public EmployeeSalary queryEmployeeSalaryByEmpSalId(int empSalId) {
        return employeeSalaryMapper.queryEmployeeSalaryByEmpSalId(empSalId);
    }

    @Override
    public EmployeeSalary queryEmployeeSalaryByEmpId(int empId) {
        return employeeSalaryMapper.queryEmployeeSalaryByEmpId(empId);
    }

    @Override
    public EmployeeSalary queryEmployeeSalaryByEmpName(String empName) {
        return employeeSalaryMapper.queryEmployeeSalaryByEmpName(empName);
    }

    @Override
    public List<EmployeeSalary> queryEmployeeSalaryByDeptName(String deptName) {
        return employeeSalaryMapper.queryEmployeeSalaryByDeptName(deptName);
    }

    @Override
    public EmployeeSalary queryEmployeeSalaryByEmpSalDate(String empSalDate) {
        return employeeSalaryMapper.queryEmployeeSalaryByEmpSalDate(empSalDate);
    }

    @Override
    public EmployeeSalary queryEmployeeSalaryByEmpSalDateSection(String empSalDate1, String empSalDate2) {
        return employeeSalaryMapper.queryEmployeeSalaryByEmpSalDateSection(empSalDate1,empSalDate2);
    }

    @Override
    public int addEmployeeSalary(EmployeeSalary employeeSalary) {
        return employeeSalaryMapper.addEmployeeSalary(employeeSalary);
    }

    @Override
    public int updateEmployeeSalaryByEmpSalId(Map<String,Object> map) {
        return employeeSalaryMapper.updateEmployeeSalaryByEmpSalId(map);
    }

    @Override
    public int updateEmployeeSalaryByEmpId(Map<String,Object> map) {
        return employeeSalaryMapper.updateEmployeeSalaryByEmpId(map);
    }

    @Override
    public int updateEmployeeSalaryByEmpName(Map<String,Object> map) {
        return employeeSalaryMapper.updateEmployeeSalaryByEmpName(map);
    }

    @Override
    public int updateEmployeeSalaryByDeptName(Map<String, Object> map) {
        return employeeSalaryMapper.updateEmployeeSalaryByDeptName(map);
    }

    @Override
    public int updateEmployeeSalaryDate(String empDate) {
        return employeeSalaryMapper.updateEmployeeSalaryDate(empDate);
    }

    @Override
    public int deleteEmployeeSalaryByEmpSalId(int empSalId) {
        return employeeSalaryMapper.deleteEmployeeSalaryByEmpSalId(empSalId);
    }

    @Override
    public int deleteEmployeeSalaryByEmpId(int empId) {
        return employeeSalaryMapper.deleteEmployeeSalaryByEmpId(empId);
    }

    @Override
    public int deleteEmployeeSalaryByEmpName(String empName) {
        return employeeSalaryMapper.deleteEmployeeSalaryByEmpName(empName);
    }

    @Override
    public int deleteEmployeeSalaryByDeptName(String deptName) {
        return employeeSalaryMapper.deleteEmployeeSalaryByDeptName(deptName);
    }

    @Override
    public int deleteEmployeeSalaryByEmpSalDate(String empSalDate) {
        return employeeSalaryMapper.deleteEmployeeSalaryByEmpSalDate(empSalDate);
    }

    @Override
    public int deleteEmployeeSalaryByEmpSalDateSection(String empSalDate1, String empSalDate2) {
        return employeeSalaryMapper.deleteEmployeeSalaryByEmpSalDateSection(empSalDate1,empSalDate2);
    }
}
